<template>
    <a :href="mode === 'hash' ? '#' + to : to">
        <slot></slot>
    </a>
</template>

<script>
export default {
    props: {
        to: String
    },
    data() {
        return {
            mode: this._self._root._router.mode,

        }

    }
}
</script>